import Vue from 'vue'
import App from './App.vue'
import './plugins/element.js'
import router from '@/router'
import '@/assets/css/global.css'
// 导入字体图标
import '@/assets/fonts/iconfont.css'
// 导入axios、配置请求根路径、将axios挂载在vue原型上
import axios from 'axios'
// axios.defaults.baseURL = 'http://127.0.0.1:8888/api/private/v1/'
// axios.defaults.baseURL = 'https://lianghj.top:8888/api/private'
// axios.interceptors.request.use(config => {
//   console.log(config);
//   // config.headers.Authorization = window.sessionStorage.getItem(token)
//   return config
// })
// axios.defaults.baseURL = 'https://gz.jgyljt.com/gzwuliao/ele-ui/';
axios.defaults.baseURL = 'http://www.mydiscuz.com/ele-ui/';
Vue.prototype.$http = axios;

Vue.config.productionTip = false

new Vue({
  router,
  render: h => h(App),
}).$mount('#app')
